https://handbookgermany.de/en/retiring-in-germany#faq_1273
Can I obtain a permanent residence permit ("Niederlassungserlaubnis") as a pensioner?